<?php 
require_once 'config.php';
if(!$loggedIn){
	header('Location:login.php') ;
	exit();
}
$folderId = intval($_POST['folderId']);
$resutls = mysql_query("SELECT * FROM te_icon WHERE icon_id=$folderId");
$row = mysql_fetch_assoc($resutls);
if($row['icon_theme'] == $themeId){
	mysql_query("DELETE FROM te_icon WHERE icon_id=$folderId");
}
?>